package com.example.service.impl;

import com.example.domain.ZoneMeteorology;
import com.example.mapper.ZoneMeteorologyMapper;
import com.example.service.ZoneMeteorologyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZoneMeteorologyServiceImpl implements ZoneMeteorologyService {

    @Autowired
    private ZoneMeteorologyMapper zoneMeteorologyMapper;

    @Override
    public List<ZoneMeteorology> getAll() {
        return zoneMeteorologyMapper.getAll();
    }

    @Override
    public ZoneMeteorology getById(Integer zoneId) {
        return zoneMeteorologyMapper.getById(zoneId);
    }

    @Override
    public boolean add(ZoneMeteorology zoneMeteorology) {
        return zoneMeteorologyMapper.add(zoneMeteorology);
    }

    @Override
    public boolean update(ZoneMeteorology zoneMeteorology) {
        return zoneMeteorologyMapper.update(zoneMeteorology);
    }

    @Override
    public boolean delete(Integer zoneId) {
        return zoneMeteorologyMapper.delete(zoneId);
    }
}
